<?php
/**
 * Created by PhpStorm.
 * User: cy
 * Date: 19-1-1
 * Time: 下午8:16
 */

namespace app\commands;


use app\models\forms\PermissionInit;
use Yii;
use yii\console\Controller;

class PermissionInitController extends Controller
{

    /**
     * @throws \yii\db\Exception
     */
    public function actionIndex()
    {
        $adminDir = Yii::getAlias('@app') . '/admin_module/controllers';
        $permissionInit=new PermissionInit($adminDir);

        $permissionInit->run();

    }
}